<?php
// 意见反馈页面
include("common.inc.php");
InitGP(array("action","name","email","content","commit")); //初始化变量全局返回
if (!empty($commit)) {
	//处理评论添加
	if (empty($name)||empty($email)||empty($content)) {
		//显示操作失败提示
		showmessage("姓名和内容必须填写","-1",false);
	}
	
	include(INC_PATH."/feedback.class.php");
	$fd=new FeedBack();
	$info=$fd->add($name,$email,$content,2);
	if ($info=="OK") {
		//处理成功，显示成功
		showmessage("請稍候，客服人員將馬上為您處理^^b","-1");
	}else {
		//处理失败
		showmessage($info,"-1",false);
	}
}

include template('feedback');//包含输出指定模板

?>